ABC122 B - ATCoder
https://atcoder.jp/contests/abc122/tasks/abc122_b
提出
code: python
s = input()
ans = 0
tmp = 0
for i in range(len(s)):
if (s
i
== "A" or s
i
== "C" or s
i
== "G" or s
i
== "T"):
tmp += 1
if (tmp > ans):
ans = tmp
else:
tmp = 0
print(ans)